﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FluentNHibernate.Mapping;

namespace Mindfor.Web.Data.Mappings
{
	public class LanguageMap : ClassMap<Language>
	{
		public LanguageMap()
		{
			Table("Languages");
			Id(m => m.Id);
			Map(m => m.Name).Length(255).Not.Nullable();
			Map(m => m.UrlName).Length(10).Not.Nullable();
			Map(m => m.Culture).Length(5).Not.Nullable();
		}
	}
}
